﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Palestra_CadastrarPalestra : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ButtonEnviar_Click(object sender, EventArgs e)
    {
        Palestra palestra = new Palestra();

        palestra.titulo = TextBoxTitulo.Text;
        palestra.descricao = TextAreaDescricao.Value;
        palestra.id = Guid.NewGuid();
        //falta o usuarios, data e local.

        if (Palestra.createPalestra(palestra))
            Response.Redirect("~/Palestra/GerenciarPalestra.aspx");
    }
}